package com.github.cloudgyb.proxy;

import com.github.cloudgyb.proxy.server.ProxyServer;

/**
 * 启动类
 *
 * @author cloudgyb
 */
public class ProxyApplication {
    private final static String host = "0.0.0.0";
    private final static int port = 81;

    public static void main(String[] args) {

        ProxyServer proxyServer = new ProxyServer(host, port,true,"test","test");
        Runtime.getRuntime().addShutdownHook(new Thread(proxyServer::stop,"ShutdownHookThread"));
        proxyServer.start();
    }

}
